# 成员运算符 in
# 例子：
str ="人生苦短 我用python"
# print(str)
# ret = "python" in str
# print(ret)
# python 中的数据类型有 如下几种
# tuple 元组 list 列表 dict 字典 str 字符串 set 集合 Boolean 布尔
# str1 = str.center(50)
# print(str1)
# str1 =str.upper()   #转换成大写
# print(str1)
# str = str1.lower()  #转换成小写
# if str.islower():
#     print("是小写")
# print(str)
# print(dir(str))       #打印对象中所有的方法名
# help(type(str))       #打印出对象中所有的方法帮助
#字符串的format 的使用
# strTemp = "hello {0} wor{1}"
# strRet = strTemp.format("chaina","ld")
# print(strRet)
#join 链接字符串
# li =["hello","world"]
# strret = "'".join(li)
# print(strret)
# ret = str.ljust(40,'*')       #
# print(ret)
# ret = str.partition(' ')
# print(ret)
str1 ="they're bill's friends from the UK"
# ret = str1.title()
# print(ret)
# print(len(str1))    #获取字符串的个数
# tu =("aaa","bbb","ccc",111,222,333)
# print(len(tu))
# length = len(str1)
# i = 0
# while i<length:
#     print(str1[i])
#     i+=1
# print("end")
# for x in str1:
#     print(x)
# print("end")

